package vg.services.graph_view_manager.realization.graph_comparison.algorithm;

public class Solution {
	private MCSVertex[] vertices;
	
	public Solution(MCSVertex[] vertices) {
		this.vertices = vertices;
	}
	
	public MCSVertex[] getVertices() {
		return vertices;
	}
	
	@Override
	public String toString() {
		StringBuilder str = new StringBuilder();
		str.append("[");
		for (int i = 0; i < vertices.length; i++) {
			if (vertices[i] == null) {
				str.append("null ");
			} else {
				str.append(vertices[i].toString());
				str.append(" ");
			}
		}
		str.append("]");
		return str.toString();
	}
}
